package com.yjz.designpattern.singletonpattern.enumSingleTon;

public enum DataSourceEnum {
  DATASOURCE;
  private DBConnection connection = null;

  private DataSourceEnum() {
    this.connection = new DBConnection();
  }

  public DBConnection getConnection() {
    return connection;
  }
}

